<template>
  <div class="Schedule">
    <el-button type="primary" @click="dialogPersonnel = true">人员选择</el-button>
    <tree :dialog-personnel="dialogPersonnel" @close="dialogClose" @enter="dialogEnter"></tree>
    <router-view/>
  </div>
</template>

<script>
import Tree from '@/components/PersonnelTree';
export default {
  name: 'Schedule',
  components: { Tree },
  data () {
    return {
      dialogPersonnel: false
    }
  },
  methods: {
    dialogClose () {
      this.dialogPersonnel = false
    },
    dialogEnter () {
      this.dialogPersonnel = false
    }
  },
  created () {

  },
  mounted () {

  }
}
</script>

<style scoped lang="scss">

</style>
